<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>时钟</title>
    <script src="clock.js"></script>
    <style>
        canvas {
            border: 1px solid red;
        }
    </style>
</head>

<body>
    <canvas id="mycanvas" width="600" height="600"></canvas>
</body>
<script>
    var myCanvas = document.getElementById("mycanvas");
    var context = myCanvas.getContext("2d");
    //平移,便于图形的绘制
    context.translate(300, 300);
</script>
<script>
    downloadClock({ clockColor: 'green' });
</script>

</html>